import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Login'
import MainView from "../components/MainView";
import Review from "../components/child/Attend"
import Staff from "../components/child/Staff";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/',
      name: 'MainView',
      component: MainView,
      children: [
        {
          path: '/staff',
          component: Staff
        },
        {
          path: '/review',
          component: Review
        }
      ]
    }
  ]
})
